/* Orders Add New Modern Styling - consistent with index/details */
:root {
  --surface: #fff;
  --text: #1f2937;
  --muted: #6b7280;
  --primary: #292be9;
  --border: #e5e7eb;
  --surface-alt: #f9fafb;
  --danger: #dc2626;
}

.order-create {
  background: var(--surface);
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.06);
  padding: 16px;
}

.order-create header h2 {
  margin: 0 0 8px 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}

.order-form {
  display: grid;
  gap: 16px;
}

fieldset.form-section {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}

legend.form-legend {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  padding: 0 8px;
}

.form-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.form-grid .field { display: flex; flex-direction: column; gap: 6px; }

/* Columns helpers */
.col-12 { grid-column: span 12; }
.col-6 { grid-column: span 6; }
.col-4 { grid-column: span 4; }
.col-3 { grid-column: span 3; }

@media (max-width: 992px) {
  .col-6, .col-4, .col-3 { grid-column: span 12; }
}

label { font-size: 0.875rem; color: var(--muted); font-weight: 600; }

.input, .select, .textarea {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  padding: 10px 12px;
  font-size: 15px;
  color: var(--text);
}

.input:focus, .select:focus, .textarea:focus {
  outline: 2px solid rgba(41,43,233,0.25);
  border-color: var(--primary);
}

/* Uploader */
.uploader {
  border: 2px dashed var(--border);
  border-radius: 12px;
  background: var(--surface);
  width: 140px; height: 140px;
  display: inline-flex; align-items: center; justify-content: center; flex-direction: column;
  gap: 8px;
}
.uploader img { width: 48px; height: 48px; opacity: 0.6; }
.uploader span { font-size: 14px; color: var(--muted); font-weight: 600; }

/* Actions */
.form-actions { text-align: center; padding-top: 8px; }
.form-actions .btn-primary {
  background: #007aff; color: #fff; font-weight: 700; border: none;
  padding: 12px 32px; font-size: 16px; border-radius: 30px;
  box-shadow: 0 4px 12px rgba(0,122,255,0.35);
}
.form-actions .btn-primary:focus { outline: 2px solid rgba(0,122,255,0.35); }

/* Details table area */
.order-details-wrap { overflow-x: auto; }
.order-details-wrap .table { min-width: 900px; }

/* Accessible helpers */
.visually-hidden { position: absolute !important; height: 1px; width: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

/* Buttons inside table */
.add-btn-one[role="button"], .remove-one[role="button"] {
  border: 1px solid var(--border); border-radius: 8px; padding: 4px 8px; cursor: pointer;
}
.add-btn-one[role="button"]:hover, .remove-one[role="button"]:hover { background: var(--surface-alt); }

